﻿

using System.Collections.Generic;
using UnityEngine;

namespace Gameplay.CharacterFramework
{
    public class ParticleManager:CoreComponent
    {
        public List<Transform> SwordTrailTransforms;

        public void PlayEffect(GameObject effectPrefab, Vector3 effectPos)
        {
            Instantiate(effectPrefab, effectPos,Quaternion.identity);
        }
        public void PlayEffect(GameObject effectPrefab,Transform effectTransform)
        {
            Instantiate(effectPrefab,effectTransform.transform.position , effectTransform.rotation);
        }
        public void PlaySwordTrail(GameObject effectPrefab)
        {
            PlayEffect(effectPrefab, SwordTrailTransforms[0]);
        }

        public void PlaySwordTrail(GameObject effectPrefab, int count)
        {
            PlayEffect(effectPrefab, SwordTrailTransforms[count]);
        }
    }
}
